#-------------------------------------------------
#
# Project created by QtCreator 2019-08-22T11:12:59
#
#-------------------------------------------------
QT += dbus
QT -= gui
#greaterThan(QT_MAJOR_VERSION, 4): QT += widgets concurrent sql xml
TEMPLATE = app

TARGET = unit_test_shortcut
target.source += $$TARGET
target.path = ./

#代码覆盖率工具gcov
QMAKE_LFLAGS +=-fprofile-arcs -ftest-coverage
QMAKE_CXXFLAGS += --coverage -fno-inline -fno-access-control -fno-exceptions

LIBS          += -lgtest_main -lpthread
LIBS          +=  -L$$[QT_INSTALL_LIBS] -lgsettings-qt  -lgtest -lgcov -ldconf

#OBJECTS_DIR = ./obj
#MOC_DIR = ./moc

CONFIG += link_pkgconfig
PKGCONFIG += gsettings-qt \
	     gio-2.0 \

INCLUDEPATH += /usr/include/dconf

#打桩工具
TEST_UTILS_PATH = $$PWD/../kt-test-utils

# Include directories
INCLUDEPATH += $$PROJECT_ROOTDIR \
               $$TEST_UTILS_PATH/cpp-stub \
               $$TEST_UTILS_PATH/cpp-stub-ext \

SOURCES += ../../registeredSession/plugins/shortcut/shortcutinterface.cpp \
	   ../../registeredSession/plugins/shortcut/getshortcutworker.cpp \
           ../../registeredSession/plugins/shortcut/type.cpp \
           unit_test_shortcut.cpp \
           main.cpp

HEADERS += ../../registeredSession/plugins/shortcut/shortcutinterface.h \
           ../../registeredSession/plugins/shortcut/getshortcutworker.h \
           ../../registeredSession/plugins/shortcut/type.h \
